package top.api.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class SysUserInfoLoginDto {

    @NotBlank(message = "邮箱不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$")
    private String email;
    /**
     * 用户名
     */
    @NotBlank(message = "昵称不可为空")
    private String nickname;


    /**
     * 密码
     */
//    @Pattern(regexp = "^[a-zA-Z0-9]{6,15}$",message = "密码格式错误")
    private String password;



    @NotBlank(message = "验证码格式错误")
    private String picCode;



    @Pattern(regexp = "^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",message = "uuid格式错误")
    private String uuid;
}